package com.learn.redis.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author PC
 * redisson属性配置
 */
@Component
@ConfigurationProperties(prefix = "cus.redisson")
public class CusRedissonProperties {
    private SingleProperties singleProperties;

    /**
     * Idempotent生成及校验是否使用默认逻辑,默认为true
     */
    private Boolean idempotentDefault = true;

    public SingleProperties getSingleProperties() {
        return singleProperties;
    }

    public void setSingleProperties(SingleProperties singleProperties) {
        this.singleProperties = singleProperties;
    }

    public Boolean getIdempotentDefault() {
        return idempotentDefault;
    }

    public void setIdempotentDefault(Boolean idempotentDefault) {
        this.idempotentDefault = idempotentDefault;
    }
}